<!doctype html>
<html lang="en">
<head>
    <?php echo Asset::container('header')->styles(); ?>
    <?php echo Asset::container('header')->scripts(); ?>
</head>
<body>
    <!-- top header begin -->
    <div class="top-header">
        <div class="top">
            <div id="site_nav" class="site_nav">
			<?php $is_login = Session::get('username','') != ''; ?>
              <p class="login-info">欢迎回优课堂<?php if ($is_login): echo ',<span class="uname">'.Session::get('username').'</span>';endif;?>！
			  <?php if (!$is_login): ?>
			  <a href="/register">[免费注册]</a><a href="/login">[登录]</a>
			  <?php else:?>
			  <a href="/logout">[退出]</a>
			  <?php endif;?>
			  </p>

              <ul class="top_menu">  
                <li class="hd menu-item cart"><a href="#">我的购物车(0)</a></li>
                <li class="hd menu-item">
                  <div class="menu"> 
                    <a class="menu-hd" href="#">我的优课堂<b></b></a>
                    <div class="bd ketang">
                      <div class="menu-bd-panel">
                        <a href="#">最近直播课</a>
                        <a href="#">已买直播课</a>
                        <a href="#" rel="nofollow">已买点播课</a>
                      </div>
                    </div>
                  </div>
                </li>
                <li class="hd menu-item">
                  <div class="menu kechengbiao"> 
                    <a class="menu-hd" href="#">我的课程表<b></b></a>
                    <div class="bd">
                      <div class="menu-bd-panel">
                        <a href="#">收藏的课程</a> 
                        <a href="#" rel="nofollow">关注的课程</a>
                      </div>
                    </div>
                  </div>
                </li>
              </ul>
            </div>
        </div>
    </div>
    <!-- top header end -->
